import request from '@/utils/request'

// 查询所属行业列表
export function listAffiliation(query) {
  return request({
    url: '/system/affiliation/list',
    method: 'get',
    params: query
  })
}

// 查询所属行业详细
export function getAffiliation(id) {
  return request({
    url: '/system/affiliation/' + id,
    method: 'get'
  })
}

// 新增所属行业
export function addAffiliation(data) {
  return request({
    url: '/system/affiliation',
    method: 'post',
    data: data
  })
}

// 修改所属行业
export function updateAffiliation(data) {
  return request({
    url: '/system/affiliation',
    method: 'put',
    data: data
  })
}

// 删除所属行业
export function delAffiliation(id) {
  return request({
    url: '/system/affiliation/' + id,
    method: 'delete'
  })
}
